function f=F_logistic(x,r,steps)
	if (nargin==2)
		f=r*x.*(1-x);
	else
		Xn=x
		for i=1:steps
			Xn=r*Xn.*(1-Xn);
		end;
		f=Xn;
	end;
return;